package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.PointsLog;
import org.darkforest.model.PointsLogSearchBean;
import org.darkforest.model.PointsLogVo;

import java.util.List;
@DBMapper
public interface PointsLogMapper {
    int deleteByPrimaryKey(Integer plId);

    int insert(PointsLog record);

    int insertSelective(PointsLog record);

    PointsLog selectByPrimaryKey(Integer plId);

    int updateByPrimaryKeySelective(PointsLog record);

    int updateByPrimaryKey(PointsLog record);
    
    List<PointsLogVo> selectByMember(PointsLogSearchBean page);

    /**
     * 获取会员积分日志明细，根据分组获取
     * @param page
     * @return
     */
    List<PointsLogVo> selectByMemberGroupByStage(PointsLogSearchBean page);
}